import type { DataTableColumns } from 'naive-ui'

const codeStore = useCodeStore()

export const basicColumns: DataTableColumns<LiteratureCelebrityVO> = [
  {
    key: 'name',
    title: '名称',
    width: 150
  },
  {
    key: 'word',
    title: '字',
    width: 150
  },
  {
    key: 'aliasName',
    title: '称号',
    width: 150
  },
  {
    key: 'dynasty',
    title: '朝代',
    render(row) {
      return codeStore.getName(_Dict.Dynasty, row.dynasty)
    }
  },
  {
    key: 'title',
    title: '头衔'
  },
  {
    key: 'upCount',
    title: '赞数'
  }
]
